<?php
/*
 *	核心参数接口模块
 */
namespace app\api\controller\app;

use think\facade\Db;

class Index extends Base{
	
	public function initialize(){
		parent::initialize();
	}
	
	public function about(){
		$data=$this->getFragment('api/app/wxmin',$this->uuid);
		if(count($data)>0){
			$data=$data['about'][0];
			$data['content']=$this->host_images($data['content'],0);
		}
		
		$this->p_list($data);
	}
	
	// 获取分享信息
	public function share(){
		$share=[
			'title'=>'海帆布业-电子色卡-专注纯棉针织面料 (更快选色，找色，对面料)',
			'imageUrl'=> $this->host_images('/static/images/xcx_share.jpg'),
		];
		$this->p_list($share);
	}
	
	//配置文件
	public function config(){
		$data=[
			'weixin'=>'haifanby',
			'phone'=>'13246930500',
			'nav_title'=>'海帆布业',
			'wxqrcode'=>$this->host_images('/static/images/xcx_qrcode.jpg'),
			'theme'=>[
				'view_color' => "--view-theme:#0081ff;--view-assist:#2a89ff;--view-themeLight:#F0FFF4;--view-fontcolor:#FFFFFF;--view-butcolor1:#4AD872;--view-butcolor2:#31BF4F;--view-butfont:#FFF",
				'theme' => "#0081ff",
				'themeLight' => "#F7F8FA",
				'assist' => "#2a89ff",
				'fontcolor' => "#FFFFFF",
				'butcolor1' => "#4A70D8",
				'butcolor2' => "#6281D9",
				'butfont' => "#FFF",
			]
		];
		$this->p_list($data);
	}
}
?>